﻿using System;
using Microsoft.Extensions.DependencyInjection;
using SaiLing.SingleSignOn.Application.Service.Interfaces.System;
using SaiLing.Web;

namespace SaiLing.SingleSignOn.Application.Service
{
    public class ServiceFactory
    {
        public static IOperationLogService LogService => GetService<IOperationLogService>();

        public static T GetService<T>()
        {
            return HttpContext.ServiceProvider.GetRequiredService<T>();
        }

    }
}
